package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsFlashPromotion;
import com.itheima.vo.PageResult;

/**
* @author lenovo
* @description 针对表【sms_flash_promotion(限时购表)】的数据库操作Service
* @createDate 2022-10-11 14:26:17
*/
public interface SmsFlashPromotionApi {

    //添加活动
    void flashPromotionCreate(SmsFlashPromotion smsFlashPromotion);

    //删除活动
    void flashPromotionDelete(Long id);

    //根据活动名称分页查询
    PageResult getPromotionByPage(String keyword, Integer pageNum, Integer pageSize);

    //修改上下线状态
    void updateStatus(Long id, Integer status);

    //编辑活动
    void updatePromotion(SmsFlashPromotion flashPromotion);

    //根据id找到flashPromotion
    SmsFlashPromotion findById(Long id);
}
